package com.arpa.wms.domain.vo;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 破损单DTO
 * </p>
 *
 * @author LEO
 * @since 2020-08-20
 */
@Data
@ApiModel(value = "DamagedVO对象", description = "破损单")
public class DamagedVO implements Serializable {

    @ApiModelProperty(value = "破损单号")
    private String code;

    @ApiModelProperty(value = "仓库")
    private String warehouseCode;

    @ApiModelProperty(value = "入驻商")
    private String shipmentCode;

    @ApiModelProperty(value = "基本单位报损总数量")
    private BigDecimal totalQuantity;

    @ApiModelProperty(value = "基本单位实际报损总数量")
    private BigDecimal totalActualQuantity;

    @ApiModelProperty(value = "单位报损总数量")
    private BigDecimal totalUnitQuantity;

    @ApiModelProperty(value = "单位实际报损总数量")
    private BigDecimal totalActualUnitQuantity;

    @ApiModelProperty(value = "审批人")
    private String approvedBy;
    @ApiModelProperty(value = "类型")
    private String type;
    @ApiModelProperty(value = "审批意见")
    private String auditMind;

    /**
     * 创建人
     */
    @ApiModelProperty(hidden = true)
    private String createdBy;

    /**
     * 修改人
     */
    @ApiModelProperty(hidden = true)
    private String modifiedBy;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty(value = "审批时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtApproved;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "总数")
    private Long total;

    @ApiModelProperty(value = "审批人")
    private String approvedName;

    @ApiModelProperty(value = "创建时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreated;

    @ApiModelProperty(value = "创建人")
    private String createdName;

    @ApiModelProperty(value = "修改人")
    private String modifiedName;

    @ApiModelProperty(value = "修改时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "货主名称")
    private String shipmentName;

    @ApiModelProperty(value = "明细")
    private List<DamagedItemVO> damagedItemList = new ArrayList<>();

    @ApiModelProperty(value = "所属机构Code")
    private String groupCode;

    @ApiModelProperty(value = "所属机构名称")
    private String groupName;
}
